package com.meixiang.activity.account.manager;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import com.meixiang.R;
import com.meixiang.main.BaseActivity;
import com.meixiang.main.MXApplication;
import com.meixiang.view.NewPaymentKeyDialog;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 修改支付密码   设置新的支付密码
 *
 * @author zys
 */
public class ChangePayOffSetNewPasswordActivity extends BaseActivity {

    @Bind(R.id.title)
    TitleView title;
    @Bind(R.id.password)
    NewPaymentKeyDialog password;
    private  String ClassStatus;
    private String  OldPwd;
    private Activity mActivity;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_change_pay_off_set_new_password);
        mActivity=ChangePayOffSetNewPasswordActivity.this;
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        title.setTitle(R.string.change_pay_off_password);
        title.setLeftImageButton(R.mipmap.back);
        title.showLeftButton(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    protected void initView() {
        ClassStatus=getIntent().getStringExtra("ClassStatus");
        OldPwd=getIntent().getStringExtra("OldPwd");
       if (ClassStatus.equals("b")){
           password.setKeyTitle(R.string.pay_off_set_new_password);
       }

        password.juumActivity(ChangePayOffSetNewPasswordActivity.class,ClassStatus);
    }

    @Override
    protected void setData() {
        MXApplication.mApp.AddActivity(mActivity);
    }

    @Override
    public void onClick(View v) {

    }


}
